package top.aiprogram.service;

import org.springframework.stereotype.Service;

@Service
public class UserServiceImpl implements UserService {

    private String name;
    private int age;

    @Override
    public void person(String name, int age) {
        this.name = name;
        this.age = age;
    }

    @Override
    public String character() {
        System.out.println("性格确实不错");
        return "已返回";
    }

    @Override
    public String getName() {
        return name;
    }

    @Override
    public int getAge() {
        return age;
    }


}
